From ca80a3cd5d0c6b20ff55b4dc8b1c345aed8a3263 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 30 Apr 2024 17:50:20 +0200 Subject: [PATCH] appDisplay: Remove action mode limitation for swipe tracker Now that we no longer have the swipe tracker on the stage, but rather on the actual actor that the gesture is happening on, we don't have to limit it to specific ActionModes anymore, so remove that. Part-of: --- js/ui/appDisplay.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index b6479ae17..e09c97d6f 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -469,12 +469,6 @@ class BaseAppViewGridLayout extends Clutter.BinLayout { var BaseAppView = GObject.registerClass({ GTypeFlags: GObject.TypeFlags.ABSTRACT, - Properties: { - 'gesture-modes': GObject.ParamSpec.flags( - 'gesture-modes', null, null, - GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY, - Shell.ActionMode, Shell.ActionMode.OVERVIEW), - }, Signals: { 'view-loaded': {}, }, @@ -607,7 +601,7 @@ var BaseAppView = GObject.registerClass({ // Swipe this._swipeTracker = new SwipeTracker.SwipeTracker(this._scrollView, Clutter.Orientation.HORIZONTAL, - this.gestureModes, + Shell.ActionMode.ALL, { name: 'AppDisplay swipe tracker', }); @@ -2119,7 +2113,6 @@ class FolderView extends BaseAppView { layout_manager: new Clutter.BinLayout(), x_expand: true, y_expand: true, - gesture_modes: Shell.ActionMode.POPUP, }); // If it not expand, the parent doesn't take into account its preferred_width when allocating -- 2.39.5